Hi all,
I have created an PagerDuty App with event integration enabled and would like to create this integration key for my service but not sure how I can do it via PagerDuty API. I can manual create it via PagerDuty web UI but not by sending a POST request.
Currently I have tried sending the POST request with the following json body to https://api.pagerduty.com/services/{{ existing service id}}/integrations:
{
“integration”: {
“type”: “app_event_transform_inbound_integration_reference”,
“summary”: “{{ my app name }}”,
“name”: “{{ my app name }}”,
}
}
with header:
Authorization: “Token token={{ pagerduty api key }}”
Accept: “application/vnd.pagerduty+json;version=2”
Content-Type: “application/json”
but got a 400 response saying:
{
“message”: “Invalid Input Provided”,
“code”: 2001,
“errors”: [
“Type cannot be empty.”
]
}
Could anyone please advise any experience on creating event integration via PagerDuty REST API call?